const noRepeat = (arr) => {
  return arr.reduce((brr, item) => {
    brr.indexOf(item) === -1 && brr.push(item)
    return brr
  }, [])
}

// let it = noRepeat([1, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3])
// console.log(it)

module.exports = {
  noRepeat,
}
